home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 15
/
Aminet 15 - Nov 1996.iso
/
Aminet
/
disk
/
cdrom
/
SkandalfoCDP.lha
/
SCDPlayer
/
Rexx
/
A->B.scdp
next >
Wrap
Text File
|
1996-09-07
|
932b
|
70 lines
/* Skandalfo CD Player ARexx script
** A->B mode.
*/
ADR=ADDRESS()
OPTIONS RESULTS
ADDRESS COMMAND setenv kk "k"
ADDRESS COMMAND setenv qq "q"
ADDRESS COMMAND setenv pp "p"
A=GETCLIP(ADR"_AB_A")
IF A="" THEN DO
PLAYINGPOS
A=RESULT
STATUS
IF RESULT~=PLAYING THEN RETURN
CALL SETCLIP(ADR"_AB_A",A)
RETURN
END
PLAYINGPOS
B=RESULT
STATUS
ST=RESULT
IF ST~=PLAYING THEN DO
CALL SETCLIP(ADR"_AB_A","")
RETURN
END
FLAG=1
PLAYRAW A B
PLAYINGPOS
Ind=RESULT
USERACTION
DO WHILE FLAG
Ti=MIN(1000,MAX(0,((B-Ind)*1000)/75))
ADDRESS COMMAND Delay Ti+100
USERACTION
UA=RESULT
IF UA~=0 THEN DO
CALL SETCLIP(ADR"_AB_A","")
RETURN
END
STATUS
ST=RESULT
IF ST=NODISK THEN FLAG=0
IF ST=STOPPED THEN DO
PLAYRAW A B
Ind=A
END
ELSE DO
PLAYINGPOS
Ind=RESULT
END
END
CALL SETCLIP(ADR"_AB_A","")